package com.rdxer.api.para;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class SaveDepartmentPara {

    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @NotBlank
    private String name;

    @NotBlank
    private String displayName;

    @NotBlank
    private String description;

    private List<Long> roleIds;
}
